#include <iostream>
using namespace std;
class MyClass {
public:
    MyClass(int num);
    int getValue() const;
private:
    const int value;
};
MyClass::MyClass(int num): value(num){}

int MyClass::getValue() const {
    return value;
}
int main() {
    MyClass obj(10);
    std::cout << obj.getValue() << std::endl;
    return 0;
}
